import React, {PropTypes, Component} from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import assign from 'object-assign';

import "./index.scss";

export default class MainCmp extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }

    componentDidMount() {
    }

    render() {
        return (
            <a className={classNames(assign({},this.props.cls))} href={this.props.href}>
                <span>{this.props.text}</span>
            </a>
        );
    }
}
MainCmp.defaultProps = {
    href: 'javascript:void(0)',
    cls: {
        newbutton: true
    }
};

MainCmp.propTypes = {
    cls : PropTypes.object,
    text: PropTypes.string,
    href: PropTypes.string
};
